package day05092;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        //1.定义两个double类型的变量weight 和height，表示身高和体重
        double weight = new Scanner(System.in).nextDouble();  //单位是千克
        double height = new Scanner(System.in).nextDouble(); //单位是米
        //2.计算bmi指数:
        double rs = weight / (height * height);
        //3.判断等级
        if (0 < rs && rs < 18.5) {
            System.out.println("太瘦了");
        } else if (18.5 <= rs && rs <= 24) {
            System.out.println("正常");
        } else if (24 < rs && rs <= 30) {
            System.out.println("偏胖");
        } else if (30 < rs) {
            System.out.println("过胖");
        } else {
            System.out.println("输入的参数不合法");
        }

    }
}
